package TemplateModel;

public abstract class Fruits {

    private boolean isFlower=true;


    public abstract void flower();

    public abstract void result();

    public void life(){
        if(isFlower) {
            this.flower();
        }
        this.result();
    }

    public final void setIsFalower(boolean isFalower){
        this.isFlower=isFalower;
    }
}
